package com.tensquare.rabbit.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @program: tensquare_parent
 * @description:
 * @author: tianshengfei
 * @create: 2019-12-06 15:05
 **/
@RabbitListener(queues="itheima")
@Component
public class Customer2 {
    @RabbitHandler
    public void getMsg(String msg){
        System.out.println("itheima："+msg);
    }
}
